package com.example.rjb_shoping.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.ToString;

import java.util.Date;
import java.io.Serializable;

/**
 * (RjbCommodity)实体类
 *
 * @author makejava
 * @since 2021-06-09 20:42:45
 */
@ToString
@Data
public class RjbCommodity implements Serializable {
    private static final long serialVersionUID = -44492247083143670L;

    @JsonProperty(value = "mId")
    private Integer mId;

    @JsonProperty(value = "mImg")
    private String mImg;

    @JsonProperty(value = "mName")
    private String mName;

    @JsonProperty(value = "cId")
    private Integer cId;

    @JsonProperty(value = "mDescription")
    private String mDescription;

    @JsonProperty(value = "mSales")
    private Integer mSales;

    @JsonProperty(value = "mInstock")
    private Integer mInstock;

    @JsonProperty(value = "mStatus")
    private Integer mStatus;

    @JsonProperty(value = "mOriginal")
    private Double mOriginal;

    @JsonProperty(value = "mPromotion")
    private Double mPromotion;

    @JsonProperty(value = "mCost")
    private Double mCost;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JsonProperty(value = "mCreate")
    private Date mCreate;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JsonProperty(value = "mRelease")
    private Date mRelease;

}
